﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using WpfModelEditor.Core.Plugins;

namespace BaseIoPlugin
{
    public class GltfIoPlugin : IIoPlugin
    {
        private List<IoFormat> _supportedFormats;
        public GltfIoPlugin()
        {
            _supportedFormats = new List<IoFormat>
                    {
                        new IoFormat
                        {
                            Name = "glb",
                            Ext =  ".glb"
                        },
                        new IoFormat
                        {
                            Name = "gltf",
                            Ext =  ".gltf"
                        }
                    };
        }
        public List<IoFormat> SupportedImportFormats
        {
            get
            {
                return _supportedFormats;
            }
        }
        public List<IoFormat> SupportedExportFormats
        {
            get
            {
                return _supportedFormats;
            }
        }

        public int Order => 200;

        public void Clearup()
        {
        }

        public void Initialize(IHost host)
        {
        }

        public LoadSaveResult Load(string path, string ext, out Scene scene)
        {
            scene = null;
            return LoadSaveResult.NotSupport;
        }
        public LoadSaveResult Save(string path, string ext, Scene scene)
        {
            return LoadSaveResult.NotSupport;
        }
    }
}
